package com.msmall.base.util;

import java.io.File;

public class Constants {

    /**
     * The name of the ResourceBundle used in this application
     */
    public static final String BUNDLE_KEY = "ApplicationResources";

    /**
     * File separator from System properties
     */
    public static final String FILE_SEP = File.separator;
    
    public static final String FILE_SEP_HTTP = "/";
    
    public static final String FILE_HTML_EXTENDS = ".html";

    public static final String GOTOURL = "GOTOURL";
    
    public static final String HTTP = "http://"; 
    /**
     * User home from System properties
     */
    public static final String USER_HOME = System.getProperty("user.home") + FILE_SEP;

    public static final String USER_ANONYMOUS = "Anonymous";
    
    /**
     *  放入HttpSession，保存当前用户的ID
     */
    public static final String SESSION_USER_ID_KEY = "USERID";
    /**
     *  放入HttpSession，指定当前用户是否是后台用户 BOOLEAN
     */
    public static final Long USER_ID_START = 10000000L;
    
    public static final String USER_AGENT_TYPE_HTML = "html";
	
	public static final String USER_AGENT_TYPE_WML = "wml";
	
	public static final String USER_AGENT_TYPE_MPL = "mpl";//mobile profile language
	
	public static final String USER_AGENT_TYPE_UNKNOW = "unknow";
	
	/**
	 * end with /
	 */
	public static String ROOTPATH = "C:\\";
	
	public static String WML_NOTATION_AND = "&#38;";
	
	public static String HTML_NOTATION_AND = "&";
	
	public static final String DEFAULT_CHARSET = "UTF-8";
	
	public static final String CACHE_NAME_COMMON = "common_cache";
	
	public static final String CACHE_NAME_SCORERULE = "scorerule_cache";
	
	public static final String CACHE_NAME_RANKRULE = "rankrule_cache";
	
	public static final String CACHE_NAME_USERINFO = "userinfo_cache";
	public static final String CACHE_NAME_USER_NAME2ID = "user_name2id_cache";
	public static final String CACHE_NAME_USERBBS = "user_bbs_cache";

	public static final String CACHE_KEY_BBS_FORUM = "bbs_forum_key";
	
	public static final String CACHE_KEY_USER_AGENT_LIST = "user_agent_list_key";
	
	
	public static final String CACHE_KEY_INDEX_COMMEND_TOP_IMAGES = "INDEX_COMMEND_TOP_IMAGES";
	public static final String CACHE_KEY_INDEX_COMMEND_TOPNEWS = "INDEX_COMMEND_TOPNEWS";
	public static final String CACHE_KEY_INDEX_COMMEND_TOPNEWS_BELOW = "INDEX_COMMEND_TOPNEWS_BELOW";
	public static final String CACHE_KEY_INDEX_COMMEND_TOPNEWS_BELOW_IMAGE = "INDEX_COMMEND_TOPNEWS_BELOW_IMAGE";
	
	public static final String CACHE_KEY_INDEX_COMMEND_HOT_IMAGE = "INDEX_COMMEND_HOT_IMAGE";
	public static final String CACHE_KEY_INDEX_COMMEND_BBS_TOPNEWS = "INDEX_COMMEND_BBS_TOPNEWS";
	public static final String CACHE_KEY_INDEX_COMMEND_BBS_CONTENT_IMAGE = "INDEX_COMMEND_BBS_CONTENT_IMAGE";
	
	
	public static final String CACHE_KEY_BBS_COMMEND_IMAGE_LIST = "bbs_commend_image_list_key";
	public static final String CACHE_KEY_BBS_COMMEND_TOPNEWS_LIST = "bbs_commend_topnews_list_key";
	public static final String CACHE_KEY_BBS_COMMEND_HOTTOPIC_LIST = "bbs_commend_hottopic_list_key";
	public static final String CACHE_KEY_BBS_COMMEND_INDEX_EACH_BOARD_IMAGE_LIST = "BBS_COMMEND_INDEX_EACH_BOARD_IMAGE_LIST";
	public static final String CACHE_KEY_BBS_COMMEND_INDEX_EACH_BOARD_IMAGE_BELOW_LIST = "BBS_COMMEND_INDEX_EACH_BOARD_IMAGE_BELOW_LIST";
	public static final String CACHE_KEY_BBS_COMMEND_TOPNEWS_BELOW_LIST = "bbs_commend_topnews_below_list_key";
	public static final String CACHE_KEY_BBS_COMMEND_ANNOUNCE_LIST = "bbs_commend_announce_list_key";
	
	public static final String CACHE_KEY_BBS_COMMEND_INDEX_EACH_BOARD_TOPNEWS_LIST = "BBS_COMMEND_INDEX_EACH_BOARD_TOPNEWS_LIST";
	public static final String CACHE_KEY_BBS_COMMEND_INDEX_EACH_BOARD_TOPNEWS_BELOW_LIST = "BBS_COMMEND_INDEX_EACH_BOARD_TOPNEWS_BELOW_LIST";
	
	public static final String CACHE_KEY_QUESTION_COMMEND_IMAGES = "CACHE_KEY_QUESTION_COMMEND_IMAGES";
	public static final String CACHE_KEY_QUESTION_COMMEND_HOT = "CACHE_KEY_QUESTION_COMMEND_HOT";
	public static final String CACHE_KEY_QUESTION_COMMEND_MOTHER = "CACHE_KEY_QUESTION_COMMEND_MOTHER";
	public static final String CACHE_KEY_QUESTION_COMMEND_BABY = "CACHE_KEY_QUESTION_COMMEND_BABY";
	public static final String CACHE_KEY_QUESTION_HOT = "CACHE_KEY_QUESTION_HOT";
	public static final String CACHE_KEY_KEYWORD = "CACHE_KEY_KEYWORD";
	
	public static final String CACHE_KEY_KLG_COMMEND_IMAGES = "CACHE_KEY_KLG_COMMEND_IMAGES";
	public static final String CACHE_KEY_KLG_COMMEND_TOP_NEWS = "CACHE_KEY_KLG_COMMEND_TOP_NEWS";
	public static final String CACHE_KEY_KLG_COMMEND_SUBSEGMENT_IMAGES = "CACHE_KEY_KLG_COMMEND_SUBSEGMENT_IMAGES";
	public static final String CACHE_KEY_KLG_SUBSEGMENT_HOT = "CACHE_KEY_KLG_SUBSEGMENT_HOT";
	public static final String CACHE_KEY_KLG_COMMEND_MOTHER = "CACHE_KEY_KLG_COMMEND_MOTHER";
	public static final String CACHE_KEY_KLG_COMMEND_BABY = "CACHE_KEY_KLG_COMMEND_BABY";
	
	public static final String CACHE_KEY_BBS_GRADERULE_MAP = "bbs_graderule_map_key";
	
	public static final String CACHE_KEY_BBS_HOT_TOPIC_LIST = "bbs_hot_topic_list_key";
	
	public static final String CACHE_KEY_PLAY_LIST = "play_list_key";
	
	public static final String CACHE_KEY_LINK_LIST = "link_list_key";
	
	public static final String CACHE_KEY_VOTE_TRAVEL_LIST = "vote_travel_list_key";
	
	public static final String CACHE_KEY_WEATHER_MAP = "weather_map_key";
	
	public static final String CACHE_KEY_BBS_BOARD_CASCADECOLLECTION = "CACHE_KEY_BBS_BOARD_CASCADECOLLECTION";
	public static final String CACHE_KEY_SEGMENT_CASCADECOLLECTION = "CACHE_KEY_SEGMENT_CASCADECOLLECTION";
	public static final String CACHE_KEY_DEPARTMENT_CASCADECOLLECTION = "CACHE_KEY_DEPARTMENT_CASCADECOLLECTION";
	
	public static final String FILE_CREATED_FLAG_WML = "1";
	public static final String FILE_CREATED_FLAG_HTML = "10";
	
	public static final int PAGINATION_SIZE_HTML = 20;
	public static final int PAGINATION_SIZE_WML = 20;
	

}
